<!DOCTYPE HTML>
<html>
<head>
  <script type="text/javascript" src="../tools/ace/build/src/ace-uncompressed.js"></script>
  <script type="text/javascript" src="../acesupport/acemode/auto_brace_insert.js"></script>
  <script type="text/javascript" src="../acesupport/acemode/tex_highlight_rules.js"></script>
  <script type="text/javascript" src="../acesupport/acemode/r_highlight_rules.js"></script>
  <script type="text/javascript" src="../acesupport/acemode/r.js"></script>
  <script type="text/javascript" src="../acesupport/acemode/r_code_model.js"></script>
  <script type="text/javascript" src="../acesupport/acemode/r_scope_tree.js"></script>
</head>
<body style="margin: 0">
<div id="editor" style="width: 100%; height: 100%"></div>
<script type="text/javascript">
var editor = ace.edit('editor');
require('mode/auto_brace_insert').setInsertMatching(true);
var RMode = require('mode/r').Mode;
editor.getSession().setMode(new RMode(false,
                                      editor.getSession().getDocument(),
                                      editor.getSession()));
</script>
</body>
</html>
